use super::container::ContainerHeader;
use util::RawData;

#[derive(RawData)]
pub struct HalfContainerInfo {
    header:ContainerHeader,
    cap:usize,
}

impl HalfContainerInfo {
    pub fn new(header:ContainerHeader,cap:usize) -> Self {
        Self {
            header:header,
            cap:cap
        }
    }

    pub fn header(&self) -> ContainerHeader {
        self.header
    }

    pub fn cap(&self) -> usize {
        self.cap
    }
}